package com.fs.erp.api.basedata.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fs.erp.web.enums.BaseEnum;

/**
 * 属性类别
 */
public enum PropertyType implements BaseEnum<Integer> {
    COMMON(1, "通用属性"), APPOINT(2, "指定类目属性"), NONE(3, "无");

    @EnumValue
    private final Integer code;

    private final String desc;

    PropertyType(Integer code, String desc) {

        this.code = code;
        this.desc = desc;
    }

    @Override
    public Integer getCode() {

        return this.code;
    }

    @Override
    public String getDesc() {

        return this.desc;
    }
}